home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
program
/
gcc
/
gcc270-d.lha
/
gnu
/
man
/
cat3
/
fflush.0
< prev
next >
Wrap
Text File
|
1992-08-10
|
2KB
|
67 lines
FFLUSH(3) UNIX Programmer's Manual FFLUSH(3)
NNAAMMEE
fffflluusshh, ffppuurrggee - flush a stream
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssttddiioo..hh>>
_i_n_t
fffflluusshh(_F_I_L_E _*_s_t_r_e_a_m)
_i_n_t
ffppuurrggee(_F_I_L_E _*_s_t_r_e_a_m)
DDEESSCCRRIIPPTTIIOONN
The function fffflluusshh() forces a write of all buffered data for the given
output or update _s_t_r_e_a_m via the stream's underlying write function. The
open status of the stream is unaffected.
If the _s_t_r_e_a_m argument is NULL, fffflluusshh() flushes _a_l_l open output streams.
The function ffppuurrggee() erases any input or output buffered in the given
_s_t_r_e_a_m. For output streams this discards any unwritten output. For input
streams this discards any input read from the underlying object but not
yet obtained via getc(3); this includes any text pushed back via ungetc.
RREETTUURRNN VVAALLUUEESS
Upon successful completion 0 is returned. Otherwise, EOF is returned and
the global variable _e_r_r_n_o is set to indicate the error.
EERRRROORRSS
[EBADF] _S_t_r_e_a_m is not an open stream, or, in the case of fffflluusshh(), not a
stream open for writing.
The function fffflluusshh() may also fail and set _e_r_r_n_o for any of the errors
specified for the routine write(2).
SSEEEE AALLSSOO
write(2), fopen(3), fclose(3), setbuf(3)
SSTTAANNDDAARRDDSS
The fffflluusshh() function conforms to ANSI C3.1591989 (``ANSI C'').
BSD Experimental June 29, 1991 1